package com.wzgl.core.server;

import com.jfinal.aop.Before;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.wzgl.core.model.Tmagic;


public class QuartService {
	public final static QuartService me = new QuartService();
	
	@Before(Tx.class)
	public boolean update(Tmagic t)throws Exception{
		boolean b = false;
		try {
			if(StrKit.isBlank(t.getFid())){
				b = false;
			}else{
				b = t.update();
			}
		} catch (Exception e) {
			b = false;
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return b;
	}
}
